package lib.bone.system.extend.service;

import lib.bone.common.core.domain.ResponseDTO;
import lib.bone.common.service.BaseService;
import lib.bone.system.extend.domain.dto.DictDataAddDTO;
import lib.bone.system.extend.domain.entity.SysDictData;
import lib.bone.system.extend.domain.entity.SysDictType;
import org.springframework.data.domain.Example;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * @Author : kindear
 * @Date : 2021-12-29
 */
public interface SysDictService  {

    ResponseDTO saveDictData(DictDataAddDTO dictDataAddDTO);
    /**
     * 根据词典数据类型查找字典数据
     * @param dictType
     * @return
     */
    List<SysDictData> findByDictType(String dictType);

    ResponseDTO getDictTypes(Pageable pageable, Example<SysDictType> example);

}
